package com.adou.d15;

import java.math.BigDecimal;

public class BigDecimalTest {

    public static void main(String[] args) {
        BigDecimal b1 = new BigDecimal("0");
        Double a = 0.00 ;
        BigDecimal b2 = new BigDecimal(a);
        System.out.println(BigDecimal.ZERO.equals(b1));
        System.out.println(BigDecimal.ZERO.equals(b2));
        System.out.println(b1.equals(b2));
    }
}
